package net.lainiao.service.service;

import net.lainiao.base.model.ReptilemodelinfosWithBLOBs;
import net.lainiao.service.dao.ReptilemodelinfosMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/1/9.
 */
@Service
public class ReptilemodeinfoService {
    @Resource
    private ReptilemodelinfosMapper reptilemodelinfosMapper;
    public int save(ReptilemodelinfosWithBLOBs reptilemodelinfosWithBLOBs) {
        if(reptilemodelinfosWithBLOBs.getId()!=null){
            return reptilemodelinfosMapper.updateByPrimaryKey(reptilemodelinfosWithBLOBs);
        }
        return reptilemodelinfosMapper.insert(reptilemodelinfosWithBLOBs);
    }

    public List<ReptilemodelinfosWithBLOBs> getNoAccess() {
        return reptilemodelinfosMapper.getNoAccess();
    }

    public void setAccess(List<ReptilemodelinfosWithBLOBs> reptilemodelinfoses) {
        reptilemodelinfosMapper.setAccess(reptilemodelinfoses);
    }
}
